import request from '@/utils/request'

// 查询播放记录列表
export function listPlayRecord(query) {
  return request({
    url: '/ips/playRecord/list',
    method: 'get',
    params: query
  })
}

// 播放记录统计列表
export function playStatList(query) {
  return request({
    url: '/ips/playRecord/playStatList',
    method: 'get',
    params: query
  })
}

// 播放记录详细列表
export function playDetailList(query) {
  return request({
    url: '/ips/playRecord/playDetailList',
    method: 'get',
    params: query
  })
}

// 查询播放记录详细
export function getPlayRecord(id) {
  return request({
    url: '/ips/playRecord/' + id,
    method: 'get'
  })
}

// 新增播放记录
export function addPlayRecord(data) {
  return request({
    url: '/ips/playRecord/save',
    method: 'post',
    data: data
  })
}

// 修改播放记录
export function editPlayRecord(data) {
  return request({
    url: '/ips/playRecord/update',
    method: 'put',
    data: data
  })
}

// 删除播放记录
export function delPlayRecord(id) {
  return request({
    url: '/ips/playRecord/remove/' + id,
    method: 'delete'
  })
}

// 导出播放记录
export function exportPlayRecord(query, ids) {
  return request({
    url: '/ips/playRecord/export/' + ids,
    method: 'get',
    params: query
  })
}
